#include <STC89C5xRC.H>
#include "Key.h"
#include "Led.h"
#include "PDIUSBD12.h"
#include "UART.h"




void main(void)
{
    uint16 id;
    EA = 1;
    InitKeyboard();
	  InitUART();

    id = D12ReadID();
    Prints("Your D12 chip\'s ID is: ");
    PrintShortIntHex(id);

    if(id == 0x1012)
    {
        Prints(". ID is correct! \r\n\r\n");
    }
    else
    {
        Prints(". ID is incorrect! \r\n\r\n");
    }




    while(1)
    {
        LEDs = ~KeyPress;
    }

}










